package lzc.encrypt.encryption;

import it.unisa.dia.gas.jpbc.PairingPreProcessing;

/**
 * 包装了数据向量的数据向量类
 *
 * @author 蓝色的三明治
 * @date 2024/10/14
 */
public class DataVector {
    private PairingPreProcessing[] data_vector;

    public int length;

    public DataVector(PairingPreProcessing[] data_vector) {
        this.data_vector = data_vector;
        length = data_vector.length;
    }

    public PairingPreProcessing getFromDataVector(int i) {
        return data_vector[i];
    }

    public void setInDataVector(int i, PairingPreProcessing data) {
        this.data_vector[i] = data;
    }
}
